ALL = wsserver.out json.out

.PHONY:all
all:json.out wsserver.out

.PHONY:json
json:json.out

.PHONY:wsserver
wsserver:wsserver.out

mysql.out:mysql.cpp
	g++ -o $@ $^ -std=c++11 -L/lib64/mysql/ -lmysqlclient

json.out:json.cpp
	g++ -o $@ $^ -std=c++11 -ljsoncpp

wsserver.out:wsserver.cpp
	g++ -o $@ $^ -std=c++11 -lpthread -lboost_system

.PHONY:clean
clean:
	rm -f ${ALL}